import $http from "../http"
// 获取职级列表
export const getLevelList = (params) => $http.post("/getLevel", params)

// 获取职级详情
export const getLevelDetail = params => $http.get(`/getLevelDetail/${params}`)

// 新增职级
export const createLevel = params => $http.post("/createLevel", params)

// 修改职级
export const updateLevel = params => $http.put(`/updateLevel/${params._id}`, params)

// 删除职级
export const destroyLevel = params => $http.post(`/destroyLevel`, params)